<template>
    <div style="width:100%;height: 100%;overflow: hidden;">
        <img :src="img[0].img_url" style="width:100%;height: 100%;">
    </div>
</template>

<script>
  import config from "../../config/config.js";
  export default {
    data() {
      return {
        img:[]
      }
    },
    created(){
      var value=JSON.stringify({"tag":'SY',"position":'SM'}),
        key=demo(value);
      axios.post('/home/home/Adver',{
        key:key,
        value:value
      },config)
        .then(function(res) {
          if(res.data.code==200) {
            this.img = res.data.data
          }
        }.bind(this))
        .catch(function (error) {
          console.log(error);
        });
    }
  }
</script>

<style>

</style>